#ifndef COLORSELECTIONPANE_H
#define COLORSELECTIONPANE_H

#include <QFrame>
#include <QLabel>
#include <QColor>
#include <QScrollBar>
#include <QVBoxLayout>

#include <string>

using namespace std;

class ColorSelectionPane : public QFrame
{
	Q_OBJECT
	private:
		QFrame * m_widgetsFrame;
		QWidget * m_parent;
		QVBoxLayout * m_layout;
	public:
		ColorSelectionPane(QWidget *parent=0 );
		
	public slots:
		void addColorBlock(string name, QColor color);
		void removeAllBlocks();
		void colorChanged( string name, QColor color );

	signals:
		void colorBlockChanged( string name, QColor color );

};

#endif // COLORSELECTOR_H
